#version 460 core
in vec2 texCoord;

out vec4 FragColor;

uniform sampler2D texture0;
uniform sampler2D texture1;

void main()
{
    vec4 t0 = texture(texture0, texCoord);
    vec4 t1 = texture(texture1, texCoord);
    t1.a = t1.a * 0.5;

    FragColor = vec4( t0.rgb * (1.0 - t1.a) + t1.rgb * t1.a, 1.0);
}